<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	form img{
		width: 40px;
		height: 32px;
	}

</style>
<script type="text/javascript">

function isUsername(s)
{
var patrn=/([A-Za-z]{0,1}[0-9]{1,2}|[0-9]{0,1}[A-Za-z]{1,2})[A-Za-z0-9]+$/;
if (!patrn.exec(s)) 
{
alert("用户名出错！[注释：只能由数字和字母组成]");
return false;
}
return true;
}

</script>
</head>
<body bgcolor="#e3e3e3">
<center>
<form action="cltRegist" method="post">
	用户名：<input type="text" name="username" onblur="isUsername(this.value)"><br>
	密&nbsp;&nbsp;码：<input type="password" name="passwd"><br>
	电话号码：<input type="text" name="tel"><br>
	地址：省：<select name="province" size="1">
		<option value="安徽">安徽</option>
		<option value="北京">上海</option>
		<option value="南京">上海</option>
		<option value="合肥">上海</option>
		<option value="辽宁">上海</option>
		<option value="大连">上海</option>
	</select>
	市：<select name="city" size="1">
		<option value="上海">上海</option>
		<option value="北京">上海</option>
		<option value="南京">上海</option>
		<option value="合肥">上海</option>
		<option value="辽宁">上海</option>
		<option value="大连">上海</option>
	</select>
	街道：<select name="street" size="1">
		<option value="上海">上海</option>
		<option value="北京">上海</option>
		<option value="南京">上海</option>
		<option value="合肥">上海</option>
		<option value="辽宁">上海</option>
		<option value="大连">上海</option>
	</select><br>
	邮箱：<input type="text" name="email"><br>
	<input type="submit" value="提交">
	<input type="reset" value="重置"><br>
</form>
</center>
</body>
</html>